﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Entities
{
    // Entity ChiTietDonHang map with SanPham Table
    public class ChiTietDonHang
    {
        // properties
        private int maSP;
        private int maDH;
        private int soLuong;
        private decimal donGia;

        // Setters and Getters
        public int MaSP
        {
            get { return maSP; }
            set { maSP = value; }
        }
        public int MaDH
        {
            get { return maDH; }
            set { maDH = value; }
        }
        public int SoLuong
        {
            get { return soLuong; }
            set { soLuong = value; }
        }
        public decimal DonGia
        {
            get { return donGia; }
            set { donGia = value; }
        }
        // Constructors
        public ChiTietDonHang()
        {
 
        }
        public ChiTietDonHang( int maSP, int maDH, int soLuong, decimal donGia)
        {
            this.maSP = maSP;
            this.maDH = maDH;
            this.soLuong = soLuong;
            this.donGia = donGia;
        }
    }
}
